/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package algorithm;

/**
 *
 * @author Lu
 */
public class WorkingTask {

    private int startTime;
    private int endTime;
    private int machineUsed;
    private int productUsed;
    private int ressourceUsed;
    private Task task;

    public WorkingTask(int startTime, int endTime,
            int machineUsed,
            int productUsed,
            int ressourceUsed,
            Task task) {
        this.startTime = startTime;
        this.endTime = endTime;
        this.machineUsed = machineUsed;
        this.productUsed = productUsed;
        this.ressourceUsed = ressourceUsed;
        this.task = task;
    }
    public Task getTask() {
        return task;
    }

    public int getStartTime() {
        return startTime;
    }

    public int getEndTime() {
        return endTime;
    }

    public int getMachineUsed() {
        return machineUsed;
    }

    public int getProductUsed() {
        return productUsed;
    }

    public int getRessourceUsed() {
        return ressourceUsed;
    }

    public void setStarttime(int newStartTime){
        startTime = newStartTime;
    }

    public void setEndtime(int newEndTime){
        endTime = newEndTime;
    }

    public void setRessource(int newRessource){
        ressourceUsed = newRessource;
    }

    public String toString() {
        //return "Task - Ressource : " + ressourceUsed + ", Time : " + startTime + "-" + endTime + ", Machine : " + machineUsed + ", Product : " + productUsed;
        return startTime + "-" + endTime+",R:" + ressourceUsed + ",M:" + machineUsed + ",P:" + productUsed;
    }
}
